< previous page page_667 next page >

Page 667
z0687-01.gif
Figure 19.4
Projecting the vector <1, 1> onto the vector <3, 0>.
e10a6a0a59f035e870d90cca05b85fce.gif
A' = B * (3 + 0)/32 = B/32 = <1, 0>
This agrees with Figure 19.4.
Cross Product
The cross product of two vectors A and B is written A × B and is another vector perpendicular to both A and B. It has length given by |A| * |B| * Sin(q) where q is the angle between the two vectors A and B.
Mathematically, the cross product between vectors A = <ax, ay, az> and B = <bx, by, bz> is given by:
<ay * bz az * by, az * bx ax * bz, ax * by ay * bz>
If vectors A and B are not parallel, there are two directions perpendicular to them both. The vector given by the cross product has the direction determined by the right-hand rule. Visualize A and B starting at the origin. Hold your right hand so your fingers line up with vector A and curl toward vector B as shown in Figure 19.5. You may need to turn your hand upside down to make your fingers curl properly. When your fingers are properly aligned, your thumb points in the direction of the cross product vector.
If the vector <cx, cy, cz> is the cross product vector, <cx, cy, cz> gives the other direction perpendicular to both A and B. If you spend some time visualizing the right-hand rule, you will find that A × B = B × A.
z0687-02.gif
Figure 19.5
The right-hand rule gives the direction
of the cross product vector.

 
< previous page page_667 next page >